/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.farmplant.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * js_farmplantEntity
 * @author 达芬奇
 * @version 2019-10-05
 */
@Table(name="${_prefix}farmplant", alias="a", columns={
		@Column(name="id", attrName="id", label="种植编号", isPK=true),
		@Column(name="fid", attrName="fid", label="农田编号"),
		@Column(name="name", attrName="name", label="农田名", queryType=QueryType.LIKE),
		@Column(name="cropname", attrName="cropname", label="农作物名"),
		@Column(name="cropnum", attrName="cropnum", label="收成"),
	}, orderBy="a.id DESC"
)
public class Farmplant extends DataEntity<Farmplant> {
	
	private static final long serialVersionUID = 1L;
	private String fid;		// 农田编号
	private String name;		// 农田名
	private String cropname;		// 农作物名
	private Double cropnum;		// 收成
	
	public Farmplant() {
		this(null);
	}

	public Farmplant(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="农田编号长度不能超过 255 个字符")
	public String getFid() {
		return fid;
	}

	public void setFid(String fid) {
		this.fid = fid;
	}
	
	@Length(min=0, max=255, message="农田名长度不能超过 255 个字符")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="农作物名长度不能超过 255 个字符")
	public String getCropname() {
		return cropname;
	}

	public void setCropname(String cropname) {
		this.cropname = cropname;
	}
	
	public Double getCropnum() {
		return cropnum;
	}

	public void setCropnum(Double cropnum) {
		this.cropnum = cropnum;
	}
	
}